package com.normal.practise.controller;


import com.normal.practise.entity.DataUser;
import com.normal.practise.service.DataUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author SiYaoLee
 * @since 2021-05-12
 */
@Api(value = "选手数据")
@RestController
@RequestMapping("/practise/data-user")
public class DataUserController {

    @Autowired
    private DataUserService dataUserService;

    @ApiOperation("查询所有选手数据")
    @GetMapping("findAll_user")
    public List<DataUser> findAll() {
        List<DataUser> list = dataUserService.list();
        return list;
    }
}

